package com.hc.feign.impl;

import com.hc.entity.User;
import com.hc.feign.MyFeign;
import org.springframework.stereotype.Component;

@Component
public class FeignFallBack implements MyFeign {
    @Override
    public User getById(Integer id) {
        User user=new User();
        user.setName("网络拥挤,请稍后重试");
        return user;
    }
}
